package com.thermoberg.passport.dao;

import com.thermoberg.passport.entity.SbyPassport;

import java.util.List;

/**
 * Created by wanghe on 2016/11/2.
 */
public interface SbyPassportDao {
    //用户登录
    public SbyPassport loginuser(String username,String password);
    //显示个人信息
    public SbyPassport sbyPassportList(Integer id);
    //查询所有用户
    public List<SbyPassport> sbyPassportList();
    //查询个人密码是否存在
    public SbyPassport querypwd(Integer id, String password);
    //重置密码
    public Integer resetPwd(Integer id);
    //修改密码
    public Integer updatepwd(Integer id, String password);
    //新增用户
    public Integer insertuser(SbyPassport sbyPassport);
    //修改用户
    public Integer updateuser(SbyPassport sbyPassport, Integer id);
    //删除用户
    public Integer deleteuser(Integer id);
    //短信平台项目登录
    public SbyPassport backstageloginuser(String username,String password);
    //数据优化系统登录
    public SbyPassport optimizeloginuser(String username,String password);


}
